package 设计模式.代理模式.动态代理;

import java.util.Random;

public class Plane implements Flyable{

    @Override
    public void fly() {
        System.out.println("Plane Flying......");
        try{
            Thread.sleep(new Random().nextInt(5000));
            //随机产生1-5秒，飞机在飞行
        }catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}

